{% extends 'main.html' %}

{% block headerlinks %}
  <!--
  ~  BicBucStriim
  ~
  ~  Copyright (c) 2012-2015 Rainer Volz
  ~  Licensed under MIT License, see LICENSE
  ~
  -->

<link rel="related" href="{{page.rot}}/opds/"
  	type="application/atom+xml;profile=opds-catalog" title="OPDS index">
  <link rel="alternate" href="{{page.rot}}/opds/authorlist/" 
  	type="application/atom+xml;profile=opds-catalog" title="OPDS catalog: by authors">
{% endblock %}

{% block pid %}id="pauthors"{%endblock%}

{% block content %}
<ul data-role="listview" data-filter="false">	
	{% for author in authors %}
		{% if author.initial != "" %}
			<li data-role="list-divider"> {{ author.initial }}</li>
		{% else %}
			<li>
				<a href="{{page.rot}}/authors/{{ author.id }}/0/">
					{% if author.thumbnail %}
					<img src="{{page.rot}}/{{author.thumbnail.url}}"/>
					{% else %}
					<img src="{{page.rot}}/img/writer.png"/>
					{% endif %}
					<h3>{{ author.sort }}</h3>
					<span class="ui-li-count">{{author.anzahl}}</span>
				</a>
			</li>
		{% endif %}
  {% endfor %}
</ul>
{% endblock %}


{% block leftpanel %}
<section data-role="panel" data-display="overlay" data-position="left" id="authors_options_panel">
    <h2>{{page.glob.l10n.pagination_search}}</h2>

    <form action="{{page.rot}}/search/"
          method="get" class="ui-bar-a">
        <div data-role="fieldcontain" class="ui-hide-label">
            <label for="search">{{page.glob.l10n.pagination_search_lbl}}</label>
            <input type="search" name="search" id="search" value="{{search}}"
                   placeholder="{{page.glob.l10n.pagination_search_ph}}" autofocus="true"/>
        </div>
    </form>
</section>
{% endblock %}